package com.study.example.ex02;

import java.io.IOException;
import java.io.Reader;

public class MyLineNumberReader extends MyBufferedReader {
	
	private int lineNumber = 0 ;

	public MyLineNumberReader(Reader r) {
		super(r) ;
	}
	public int getLineNumber() {
		return lineNumber;
	}
	public void setLineNumber(int lineNumber) {
		this.lineNumber = lineNumber;
	}
	@Override
	public String readLine() throws IOException {
		lineNumber ++ ;
		return super.readLine();
	}
}
